package com.sansheng.util;

import org.springframework.context.annotation.PropertySource;

import java.util.ResourceBundle;

/**
 * @author 陈龙
 * @version 2017年09月09日 23时20分
 */
@PropertySource(value = {"classpath:config/netease.properties"})
public final class Resources {

    /**
     * 网易接口配置
     */
    public static final ResourceBundle NETEASE = ResourceBundle.getBundle("config/netease");

    public static String getNeteaseURL(){
        return NETEASE.getString("NETEASE_URL");
    }

    public static void main(String[] args) {
        System.out.println(NETEASE.getString("CHANNEL_CREATE_URL"));
    }
}
